<template>
  <view>
    <uv-calendar ref="calendar" @confirm="confirm"></uv-calendar>
    <button @click="open">打开</button>
  </view>
</template>
<script>
export default {
  methods: {
    open() {
      this.$refs.calendar.open();
    },
    confirm(e) {
      console.log("日历选择：", e);
    },
  },
};
</script>
